package xmlrpc.server;


/**
 * Handler containing public methods, available to all clients.
 * @author Qw4z1
 *
 */
public class StringSender implements StringSenderInterface {
	private volatile String sO = "...";
	private volatile int playerNumber = 0;
		

	public int getPlayerNumber(){
		int returnNumber =playerNumber;
		playerNumber++;
		return returnNumber;
	}

	/**
	 * @param string string to store
	 */
	public boolean setString(String string) {
		sO=string;
		return true;
	}
	/**
	 * @param sO stored string
	 */
	public String getString() {
		return sO;
	}
}
